<?php

declare(strict_types=1);

namespace App\CustHub\Mapper;

use App\CustHub\Model\ChChannelCodeRobotAddNumber;
use Mine\Abstracts\AbstractMapper;
 class ChChannelCodeRobotAddNumberMapper extends AbstractMapper
{
    public function assignModel()
    {
        $this->model = ChChannelCodeRobotAddNumber::class;
    }

    public function existRobotIds(array $robotIds): array
    {
        return $this->model::query()
            ->whereIn('robot_id', $robotIds)
            ->pluck('robot_id')
            ->toArray();
    }
}
